package com.potenza.wxuser.model;

import lombok.Data;

import java.util.Date;

/**
 DROP TABLE IF EXISTS `tb_wx_user`;
 CREATE TABLE `tb_wx_user` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `openid` varchar(255) DEFAULT NULL,
 `unionid` varchar(255) DEFAULT NULL,
 `session_key` varchar(255) DEFAULT NULL,
 `nick_name` varchar(255) DEFAULT NULL,
 `gender` int(11) DEFAULT NULL,
 `language` varchar(255) DEFAULT NULL,
 `city` varchar(255) DEFAULT NULL,
 `province` varchar(255) DEFAULT NULL,
 `country` varchar(255) DEFAULT NULL,
 `avatar_url` varchar(255) DEFAULT NULL,
 `create_time` datetime DEFAULT NULL,
 `update_time` datetime DEFAULT NULL,
 PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
 */
@Data
//@TableName("tb_wx_user")
public class WeixinUser {

    //@TableId(type = IdType.AUTO )
    private Long id;

    private String openid;

    private String unionid;

    private String sessionKey;

    private String nickName;//昵称

    private Integer gender;//性别 0：未知、1：男、2：女

    private String language;//语言

    private String city;//

    private String province;//

    private String country;

    private String avatarUrl;

    private Date createTime;

    private Date updateTime;

}
